﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace Vehicle.BLL
{
    /// <summary>
    /// Copyright (C) M-Tear团队
    /// 文 件 名：Post.cs
    /// 版    本：v1.00.0000
    /// 创建标识：2009-09-03    Created by 孙成杰 V1.00.0000
    /// 功能说明：Post表逻辑层类（继承于逻辑层基类)
    /// 注意事项：无
    /// 
    /// 更新记录：
    /// 
    /// </summary>
    public class Post : Base_BLL,IPost
    {
        private static readonly Vehicle.Interface.IPost d_Post = Vehicle.Interface.Factory.CreatedPost();
        /// <summary>
        /// 通过标题和时间查询绑定页面Repeater控件
        /// </summary>
        /// <param name="rep">Repeater控件对象</param>
        /// <param name="m_ComponentsInfo">系统通用实体层</param>
        public void RepeaterBindSearch(Repeater rep, Model.ComponentsInfo m_ComponentsInfo)
        {
            d_Post.RepeaterBindSearch(rep, m_ComponentsInfo);
        }


        /// <summary>
        /// 添加公告数据
        /// </summary>
        /// <param name="m_PostInfo">实体对象</param>
        public void Add(Model.PostInfo m_PostInfo)
        {
            d_Post.Add(m_PostInfo);
        }

        /// <summary>
        /// 修改公告数据
        /// </summary>
        /// <param name="m_PostInfo">实体对象</param>
        public void Update(Model.PostInfo m_PostInfo)
        {
            d_Post.Update(m_PostInfo);
        }
    }
}
